package com.atzxh.exer;

/**
 * @author 小红同学
 * @create 2023-04-08-21:29
 * @description
 */
public class ChengFaBiao {
    public static void main(String[] args) {
        //一个for循环打印乘法口决表
        int i = 1;//行
        int j = 1;//列
        for (; j <= 9 && i <= 9; i++, j++) {
            if (j < i) {
                System.out.print(j + "*" + i + "=" + j * i + "\t");
                i = i - 1;
            } else {
                j = 0;
                System.out.println(i + "*" + i + "=" + i * i + "\t");
            }
        }
    }

}
